php forum
php mysql forum
php mysql smarty
 
Topic Options
#232641 - 01/10/03 09:41 PM [6.2] Location Display Fix
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Just in case you have a practical joker or two that like to place extremely long words into their locations to distort your showflat/showthreaded layouts you can do the following:<br /><br />In your showflat/showthreaded php scripts find this:<br /><br />
Code:
<br />         if ($Location) {<br />            $postrow[$i]['Location'] = "{$ubbt_lang['USER_LOC']} $Location";<br />         }<br />
<br /><br />to this:<br /><br />
Code:
<br />         if ($Location) {<br />            if (strlen($Location) &gt; 30) {<br />               $TitleText = $Location;<br />               $Location = substr($Location,0,30);<br />               $Location = "&lt;span title=\"$TitleText\"&gt;$Location... &lt;/span&gt;";<br />            }<br />            $postrow[$i]['Location'] = "{$ubbt_lang['USER_LOC']} $Location";<br />         }<br />
<br /><br /><br />Current working example:<br />http://www.threadsdev.com/threads/php/sh...amp;amp;fpart=1<br />(mouse over the location display to see the full text)
_________________________
~Dave
ChattersOnline.com

Top
#232642 - 01/12/03 07:11 PM Re: [6.2] Location Display Fix [Re: sjsaunders]
autoua.net Offline
User

Registered: 06/22/01
Posts: 49
Loc: Ukraine, Kyiv
In showthreaded.php <br />
Code:
 	if ($Location) {<br />            if (strlen($Location) &gt; 30) {<br />               $TitleText = $Location;<br />               $Location = substr($Location,0,30);<br />               $Location = "&lt;span title=\"$TitleText\"&gt;$Location... &lt;/span&gt;";<br />            }<br />&gt;&gt;fixed&gt;&gt;&gt;     $Location = "{$ubbt_lang['USER_LOC']} $Location";<br />         }<br /> 

Top
#232643 - 01/12/03 07:41 PM Re: [6.2] Location Display Fix [Re: DonaldMbeki]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Thanks <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232644 - 01/13/03 12:15 AM Re: [6.2] Location Display Fix [Re: sjsaunders]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
This one should be in a future release of Threads... Well done! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#232645 - 01/13/03 04:45 PM Re: [6.2] Location Display Fix [Re: jacksonm99]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Thank you. <br />Yes this should be in the standard version.
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#232646 - 06/13/03 01:41 PM Re: [6.2] Location Display Fix [Re: rodrigo1]
Dslam Offline
Member

Registered: 06/05/01
Posts: 246
Loc: USA
this works in 6.3 <br /> <img src="/forum/images/graemlins/smile.gif" alt="" />

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks